//
//  LabelsHeaderView.m
//  Arts1
//
//  Created by apple on 15/9/26.
//  Copyright © 2015年 Arts1. All rights reserved.
//

#import "LabelsHeaderView.h"

@interface LabelsHeaderView ()

@property (strong, nonatomic) UILabel *label;

@end

@implementation LabelsHeaderView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(10, 5, self.bounds.size.width, 20)];
        self.label.font = [UIFont systemFontOfSize:11];
        [self addSubview:self.label];
    }
    return self;
}

- (void) setLabelText:(NSString *)text
{
    self.label.text = text;
    [self.label sizeToFit];
}

@end
